//
//  ViewController1.h
//  BarCodeAndQRCode
//
//  Created by jiezsoft.com on 14-10-10.
//  Copyright (c) 2014年 jiezsoft.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface ScanViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate,UIAlertViewDelegate>
{
     NSTimer * timer;
    int num;
    BOOL isDown;
     NSString *stringValue;
     UIAlertView* alt;
}
@property(nonatomic,strong)NSString* sta;
@property (strong, nonatomic) UIImageView *viewPreview1;
@property (strong, nonatomic) UIImageView *viewPreview;
@property(nonatomic) BOOL isReading;
@property(nonatomic,strong) AVCaptureSession *captureSession;
@property(nonatomic,strong) AVCaptureSession *captureSession1;
@property(nonatomic,strong) AVCaptureVideoPreviewLayer *videoPreviewLayer;
@property(nonatomic,strong) AVCaptureVideoPreviewLayer *videoPreviewLayer1;
@property (nonatomic, retain) UIView * line;
@property (retain, nonatomic) UIAlertView* alt;
- (void)showAlertWait;
- (void)showAlertMessage:(NSString*)msg;
- (void)hideAlert;

@end
